package com.dbdata.move.model;

// Generated cafuc by Hibernate Tools 4

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Handbook generated by hbm2java
 */
@Entity
@Table(name = "handbook")
public class Handbook implements java.io.Serializable {

	private Long id;
	private UserBaseInfo userBaseInfo;
	private String handbookName;
	private Date updateDate;
	private String revisedVersion;
	private String fileUrl;
	private String remark;

	public Handbook() {
	}

	public Handbook(UserBaseInfo userBaseInfo, String handbookName,
			Date updateDate, String revisedVersion, String fileUrl,
			String remark) {
		this.userBaseInfo = userBaseInfo;
		this.handbookName = handbookName;
		this.updateDate = updateDate;
		this.revisedVersion = revisedVersion;
		this.fileUrl = fileUrl;
		this.remark = remark;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "OPERATOR")
	public UserBaseInfo getUserBaseInfo() {
		return this.userBaseInfo;
	}

	public void setUserBaseInfo(UserBaseInfo userBaseInfo) {
		this.userBaseInfo = userBaseInfo;
	}

	@Column(name = "HANDBOOK_NAME", length = 60)
	public String getHandbookName() {
		return this.handbookName;
	}

	public void setHandbookName(String handbookName) {
		this.handbookName = handbookName;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UPDATE_DATE", length = 19)
	public Date getUpdateDate() {
		return this.updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	@Column(name = "REVISED_VERSION", length = 20)
	public String getRevisedVersion() {
		return this.revisedVersion;
	}

	public void setRevisedVersion(String revisedVersion) {
		this.revisedVersion = revisedVersion;
	}

	@Column(name = "FILE_URL", length = 100)
	public String getFileUrl() {
		return this.fileUrl;
	}

	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}

	@Column(name = "REMARK", length = 200)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
